﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace Øving3Blackjack
{
    class Card
    {
        private Boolean ace;
        private int gameValue;
        private int number;
        private Ranks suit;
        private String filePath;

        public Card(int number, Ranks suit, int gameValue, Boolean ace, String filePath)
        {
            this.ace = ace;
            this.number = number;
            this.gameValue = gameValue;
            this.suit = suit;
            this.filePath = filePath;
        }

        public void paintSelf(object sender, PaintEventArgs e, Point position)
        {
            Graphics g = e.Graphics;
            g.DrawImage(Image.FromFile(filePath), position);
        }

        public Boolean Ace
        {
            get { return ace; }
            set { ace = value; }
        }

        public int GameValue
        {
            get { return this.gameValue; }
            set { this.gameValue = value; }
        }

        private Ranks Suit
        {
            get { return suit; }
            set { suit = value; }
        }
        
        public String FilePath
        {
            get { return filePath; }
            set { filePath = value; }
        }

        public int Number
        {
            get { return number; }
            set { number = value; }
        }
    }
}
